import http from "./axios"

//登录
const goLogin=(data)=>{
    return http.post('/login',data)
}
//注册
const goRegister=(data)=>{
    return http.post('/register',data)
}
//新人专享
const newPropleVip=()=>{
    return http.get('/getnew')
}
//秒杀信息
const seckillGoods=()=>{
    return http.get('/getseckill')
}
//首页商品信息
const indexGoodsList=()=>{
    return http.get('/getindexgoods');
}
//获取商品分类
const goodsCates=()=>{
    return http.get('/getcate');
}
//获取分类下的商品
const catesGoods=(fid)=>{
    return http.get('/getgoods',{params:{fid}})
}
export {
    goLogin,
    goRegister,
    newPropleVip,
    seckillGoods,
    indexGoodsList,
    goodsCates,
    catesGoods
}